<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>资讯详情</title>
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/font-awesome.4.6.0.css"/>
	<link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/froala_editor.min.css" />
	<link rel="stylesheet" type="text/css" href="../../js/plugins/TUpload/css/upload.css" />

	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="../../js/plugins/TUpload/js/T_upload.js"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/froala_editor.min.js"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/langs/zh_cn.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/lists.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/colors.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/media_manager.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/font_family.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/font_size.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/block_styles.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/video.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/information/informationDetail.js?version=1.0.1" async="async"></script>

	<style>
		.layui-form-item .layui-input-inline-n{
			display: inline-block;
			width: 190px;
			margin-right: 10px;
		}

		.layui-form-item .layui-input-inline-n .no-border{
			border:none;
		}

		/*.layui-form-radio{*/
			/*margin:0px 10px 0px 0px!important;*/
		/*}*/

		img.cover-img{
			width:80px;
			height:80px;
		}
	</style>
</head>
<body class="childrenBody">
	<form class="layui-form" id="informationForm">
		<input type="hidden" name="id" th:value="${tInformation.id}"/>
		<input type="hidden" name="infoId" th:value="${tInformation.infoId}"/>
		<div class="layui-form-item">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" readonly="true" th:value="${tInformation.title}" name="title" class="layui-input informationName" lay-verify="required" placeholder="标题的长度为5-30个汉字"/>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">视频地址</label>
			<div class="layui-input-block">
				<input type="text" readonly="true" th:value="${tInformation.videoUrl}" name="videoUrl" class="layui-input"/>
			</div>
		</div>


		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">栏目分类</label>
				<div class="layui-input-inline">
					<select name="navType" class="newsLook" lay-filter="browseLook" id="navType" disabled="disabled">
						<option th:each="nav,iterStat:${navList}" th:value="${iterStat.index}" th:text="${nav}" th:selected="${tInformation.navType==iterStat.index}"></option>
					</select>
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">作者</label>
			<div class="layui-input-block">
				<input type="radio" disabled="disabled" name="fromType" value="0" checked="${tInformation.fromType == 0}" title="原创" lay-filter="fromType"/>
				<input type="radio" disabled="disabled" name="fromType" value="1" checked="${tInformation.fromType == 1}" title="转载" lay-filter="fromType"/>

				<!--<input type="hidden" th:field="*{author}" id="authorH"/>-->

				<div class="layui-input-inline-n" id="originalAuthor" style="display: none;">
					<input class="layui-input no-border" readonly="readonly" value="蘑菇力"/>
				</div>

				<div class="layui-input-inline-n" id="reprintAuthor">
					<input type="text" readonly="readonly" name="author" th:value="${tInformation.author}" class="layui-input informationName"/>
				</div>
			</div>
		</div>

		<input type="hidden" th:value="${tInformation.content}" id="contentH"/>
		<div class="layui-form-item">
			<label class="layui-form-label">文章内容</label>
			<div class="layui-input-block">
				<section id="editor">
					<textarea name="content" id='froalaEditor' style="margin-top: 30px;"></textarea>
				</section>
			</div>
		</div>

		<div class="layui-form-item" id="coverImgs">
			<label class="layui-form-label">封面图</label>
			<div class="layui-input-block" id="coverImgWrap">
				<div class="layui-inline" th:if="${not #strings.isEmpty(tInformation.coverUrl)}" th:each="imgUrl:${#strings.arraySplit(tInformation.coverUrl,'@@@@')}">
					<img class="cover-img" th:src="${imgUrl}" alt="封面图"/>
				</div>
				<!--<button class="layui-btn layui-btn-small layui-btn-normal" id="reUploadCover">重新上传</button>-->
			</div>
		</div>

		<!-- 封面图上传-->
		<div class="layui-form-item" id="uploadCoverWrap" style="display: none;">
			<label class="layui-form-label">封面上传</label>
			<div class="layui-input-block" id="T_upload">

			</div>
		</div>

		<input type="hidden" name="coverUrl" th:value="${tInformation.coverUrl}" id="coverUrl"/> <!--封面图地址-->
		<input type="hidden" name="status" value="1" id="inforStatus"/> <!--资讯状态-->
		<input type="hidden" name="statusValue" value="待审核" id="infoStatusValue"/> <!--资讯状态值-->

		<!--<div class="layui-form-item">-->
			<!--<div class="layui-input-block">-->
				<!--<button class="layui-btn" lay-submit="" lay-filter="addInformation">立即提交</button>-->
				<!--<button class="layui-btn" lay-submit="" lay-filter="addInformationToDraft">保存为草稿</button>-->
				<!--<input class="layui-btn" type="submit" id="" value="立即提交" style="display: none;"/>-->
		    <!--</div>-->
		<!--</div>-->
	</form>

</body>
</html>